package com.enjoy.xbase.db.handle;

import java.util.List;

public interface ISelect {

    ISelect selects(String... columns);

    ISelect where(String selection, String... selectionArgs);

    ISelect groupBy(String having);

    /**
     * 倒序=time desc
     * 正序=time esc
     */
    ISelect order(String order);

    ISelect offset(int start);

    ISelect limit(int icount);

    <T> List<T> finds(Class<T> modelClass);

    <T> T find(Class<T> modelClass);
}
